//
//  STLAvPlayer.h
//  STL_ Animation
//
//  Created by DJtd on 16/4/5.
//  Copyright © 2016年 STL. All rights reserved.
//

#import <AVFoundation/AVFoundation.h>

@interface STLAvPlayer : AVPlayer

+(instancetype)shareAVPlayer;

- (void)playWithUrl:(NSString *)url;

//功能标记
@property (nonatomic, assign) NSInteger changeItem;//循环模式
@property (nonatomic, assign) NSInteger changeType;//视频格式
@property (nonatomic, assign) BOOL isPlayer;//是否播放
@property (nonatomic, assign) BOOL isCollection;//是否收藏
@property (nonatomic, assign) BOOL isLock;//是否锁屏
@property (nonatomic, assign) BOOL isDownload;//是否下载
@property (nonatomic, strong) NSString *currentURL;//视频格式不同url不同
@property (nonatomic, assign) BOOL isRadom;//是否为随机模式
@property (nonatomic, strong) NSMutableArray *MVList;//音乐单
@property (nonatomic, assign) NSInteger indexPathNum;
@property (nonatomic, assign) NSInteger pageType;
@property (nonatomic, strong) AVPlayerItem *playerItem;
@property (nonatomic, strong) AVPlayerLayer *playerLayer;
@property (nonatomic, strong) UIProgressView *progressView;

@end
